package com.ruoyi.wmsorder.domain;

import java.math.BigDecimal;
import java.util.List;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购订单对象 wms_purchaseorder
 * 
 * @author ruoyi
 * @date 2024-03-12
 */
@Data
public class WmsPurchaseorder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNo;

    /** 订单类型 */
    @Excel(name = "订单类型")
    private Long orderType;


    /** 供应商 */
    @Excel(name = "供应商")
    private Long supplierId;

    /** 订单金额 */
    @Excel(name = "订单金额")
    private BigDecimal payableAmount;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Integer receiptOrderStatus;

    /** 删除标识 */
    private Integer delFlag;

    /** 仓库id */
    private Long warehouseId;

    /** 采购订单详情信息 */
    private List<WmsPurchaseorderDetail> wmsPurchaseorderDetailList;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNo", getOrderNo())
            .append("orderType", getOrderType())
            .append("supplierId", getSupplierId())
            .append("payableAmount", getPayableAmount())
            .append("receiptOrderStatus", getReceiptOrderStatus())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("warehouseId", getWarehouseId())
            .append("wmsPurchaseorderDetailList", getWmsPurchaseorderDetailList())
            .toString();
    }
}
